package com.zhxy.controller;

import com.zhxy.pojo.Admin;
import com.zhxy.service.AdminService;
import com.zhxy.utils.JWTUtils;
import com.zhxy.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin")
@Api(tags = "管理员模块")
public class AdminController {

    @Autowired
    private AdminService adminService;
    @Autowired
    private JWTUtils jwtUtils;


    @GetMapping("/list")
    @ApiOperation(value = "list列表")
    public String list(){
        return "list";
    }

    @GetMapping("/page")
    @ApiOperation(value = "分页查询列表功能")
    @ApiImplicitParams({
            @ApiImplicitParam(required = true,value = "当前页数",name = "pageNum"),
            @ApiImplicitParam(required = true,value = "条数",name = "pageSize")
    })
    public Result page(Integer pageNum, Integer pageSize){
        return null;
    }



}
